package com.dodayum.service.impl;

import com.dodayum.dao.UserMapper;
import com.dodayum.pojo.User;
import com.dodayum.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    @Resource
    UserMapper userMapper;

    @Override
    public List<User> login(String userName, String password) {
        return userMapper.login(userName, password);
    }
}
